<template>
  <view>
    <view class="container">
      <!-- 表单内容 -->
      <u-form class="form-content">
        <!-- 驾校名称输入 -->
        <u-form-item label="驾校名称" class="form-item" label-width="120">
          <u-input
            v-model="formData.plateNumber"
            placeholder="请输入驾校名称"
            class="custom-input"
          />
        </u-form-item>

        <!-- 车牌号码选择 -->
        <u-form-item label="车牌号码" class="form-item" label-width="120">
          <u-input
            v-model="formData.plateNumber"
            placeholder="请输入车牌号码"
            class="custom-input"
          />
        </u-form-item>
      </u-form>

      <!-- 查询按钮 -->
      <view class="btn-container">
        <u-button @click="goToquerycert()">立即查询</u-button>
      </view>
    </view>
  </view>
</template>
<script>
import { changePlatecolor } from "@/common/util_complete.js";
export default {
  data() {
    return {
      formData: {
        region: "",
        plateNumber: "",
        plateColor: "",
        transportNumber: "",
      },
    };
  },
  onLoad(options) {},
  methods: {},
};
</script>
<style lang="scss" scoped>
.container {
  width: 100%;
  padding: 10px;
  background-color: #f3f6fa;
  height: 100vh;
  box-sizing: border-box;
}

.form-content {
  background-color: #ffffff;
  padding: 0;
  /* 去掉 padding */
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-item {
  padding: 0 10px;
  border-bottom: 1px solid #f1f1f1;
  /* 设置下边框 */
}
.custom-input {
  border: none;
  /* 去掉输入框的边框 */
  background-color: transparent;
  /* 使背景透明 */
}

.arrow-icon-groud {
  position: relative;
  flex: 1;

  .arrow-icon {
    position: absolute !important;
    right: 20px;
    top: 10px;
  }
}

.btn-container {
  margin-top: 30px;
  text-align: center;

  width: 100%;
  box-sizing: border-box;
  ::v-deep .u-button--info[data-v-461e713c] {
    width: 100%;
    background-color: #2877ff;
    color: #ffffff;
  }
}

.popup-content {
  padding: 20px;
  text-align: center;
  width: 300px;

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* 确保弹窗内容撑满整个可用空间 */
  .popup-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .popup-title {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .popup-subtitle {
      font-size: 14px;
      color: #666;
    }

    ::v-deep .u-btn {
      background-color: #2877ff;
      color: #fff;
      border-radius: 4px;
      margin: 30px 0 20px 0;
      width: 100%;
    }
  }
}
</style>
